package com.exahq.service.impl;

import com.exahq.entity.SelectData;
import com.exahq.entity.Userinfo;
import com.exahq.mapper.UserinfoMapper;
import com.exahq.service.UserinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lhq
 * @since 2021-02-02
 */
@Service
public class UserinfoServiceImpl extends ServiceImpl<UserinfoMapper, Userinfo> implements UserinfoService {
@Autowired
    UserinfoMapper userinfoMapper;
    @Override
    public int getCount(SelectData selectData) {
        return userinfoMapper.getCount(selectData);
    }

    @Override
    public List<Userinfo> getByQuery(SelectData selectData) {
        return userinfoMapper.getByQuery(selectData);
    }
    @Override
    public Integer delete(Integer id) {
        return userinfoMapper.deleteById(id);
    }

}
